import App from './App.vue'
import { createApp } from 'vue'
import "@/styles/index.scss";
import ElementPlus from 'element-plus'
// element css
import 'element-plus/dist/index.css'
import * as Icons from "@element-plus/icons-vue";
// vue Router
import router from "@/routers/index";
// pinia store
import pinia from "@/stores/index";
import { registerDirectives } from './directive/index'
const app = createApp(App)
// 注册element Icons组件
Object.keys(Icons).forEach(key => {
	app.component(key, Icons[key as keyof typeof Icons]);
});
registerDirectives(app)
app.use(pinia).use(router).use(ElementPlus).mount('#app')